package com.lehecai.core.task.service;

import java.io.Serializable;

/**
 * Created by qatang on 14-3-27.
 */
public interface IQueueService {
    /**
     * 推送至队列
     * @param name
     * @param serializableObj
     * @return
     */
    public boolean push(String name, Serializable serializableObj);

    /**
     * 从队列读取
     * @param name
     * @return
     */
    public Serializable pop(String name);
}
